package com.module.flowLine.vo.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the skt_exception table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="skt_exception"
 */

public abstract class BaseSktException  implements Serializable {

	public static String REF = "SktException";
	public static String PROP_FINISHTIME = "finishtime";
	public static String PROP_ALARMLEVEL = "alarmlevel";
	public static String PROP_STATUS = "status";
	public static String PROP_FINISHUSERID = "finishuserid";
	public static String PROP_ID = "Id";
	public static String PROP_DEVICEID = "deviceid";
	public static String PROP_ALARMTEXT = "alarmtext";
	public static String PROP_CREATETIME = "createtime";


	// constructors
	public BaseSktException () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseSktException (java.lang.Long id) {
		this.setId(id);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseSktException (
		java.lang.Long id,
		java.lang.String deviceid,
		java.lang.String alarmlevel,
		java.lang.String alarmtext,
		java.util.Date createtime,
		java.lang.String status) {

		this.setId(id);
		this.setDeviceid(deviceid);
		this.setAlarmlevel(alarmlevel);
		this.setAlarmtext(alarmtext);
		this.setCreatetime(createtime);
		this.setStatus(status);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Long id;

	// fields
	private java.lang.String deviceid;
	private java.lang.String alarmlevel;
	private java.lang.String alarmtext;
	private java.util.Date createtime;
	private java.lang.String status;
	private java.util.Date finishtime;
	private java.lang.String finishuserid;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="i_id"
     */
	public java.lang.Long getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Long id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: c_deviceid
	 */
	public java.lang.String getDeviceid () {
		return deviceid;
	}

	/**
	 * Set the value related to the column: c_deviceid
	 * @param deviceid the c_deviceid value
	 */
	public void setDeviceid (java.lang.String deviceid) {
		this.deviceid = deviceid;
	}



	/**
	 * Return the value associated with the column: c_alarmlevel
	 */
	public java.lang.String getAlarmlevel () {
		return alarmlevel;
	}

	/**
	 * Set the value related to the column: c_alarmlevel
	 * @param alarmlevel the c_alarmlevel value
	 */
	public void setAlarmlevel (java.lang.String alarmlevel) {
		this.alarmlevel = alarmlevel;
	}



	/**
	 * Return the value associated with the column: c_alarmtext
	 */
	public java.lang.String getAlarmtext () {
		return alarmtext;
	}

	/**
	 * Set the value related to the column: c_alarmtext
	 * @param alarmtext the c_alarmtext value
	 */
	public void setAlarmtext (java.lang.String alarmtext) {
		this.alarmtext = alarmtext;
	}



	/**
	 * Return the value associated with the column: d_createtime
	 */
	public java.util.Date getCreatetime () {
		return createtime;
	}

	/**
	 * Set the value related to the column: d_createtime
	 * @param createtime the d_createtime value
	 */
	public void setCreatetime (java.util.Date createtime) {
		this.createtime = createtime;
	}



	/**
	 * Return the value associated with the column: c_status
	 */
	public java.lang.String getStatus () {
		return status;
	}

	/**
	 * Set the value related to the column: c_status
	 * @param status the c_status value
	 */
	public void setStatus (java.lang.String status) {
		this.status = status;
	}



	/**
	 * Return the value associated with the column: d_finishtime
	 */
	public java.util.Date getFinishtime () {
		return finishtime;
	}

	/**
	 * Set the value related to the column: d_finishtime
	 * @param finishtime the d_finishtime value
	 */
	public void setFinishtime (java.util.Date finishtime) {
		this.finishtime = finishtime;
	}



	/**
	 * Return the value associated with the column: c_finishuserid
	 */
	public java.lang.String getFinishuserid () {
		return finishuserid;
	}

	/**
	 * Set the value related to the column: c_finishuserid
	 * @param finishuserid the c_finishuserid value
	 */
	public void setFinishuserid (java.lang.String finishuserid) {
		this.finishuserid = finishuserid;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.module.flowLine.vo.SktException)) return false;
		else {
			com.module.flowLine.vo.SktException sktException = (com.module.flowLine.vo.SktException) obj;
			if (null == this.getId() || null == sktException.getId()) return false;
			else return (this.getId().equals(sktException.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}